package com.ark.common.domain.entity.game;

import com.ark.common.domain.BaseEntity;
import com.ark.common.domain.game.config.KeyValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;


@Data
@TableName(value = "game_config",autoResultMap = true)
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class GameConfig extends BaseEntity {
    /**
     * id，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 服务器类型（0：官服，1：B服）
     */
    @TableField(value = "server_type",typeHandler = JacksonTypeHandler.class)
    private List<KeyValue> serverType;

    /**
     * 任务类型(0:日常，1：肉鸽，2：生息演算）
     */
    @TableField(value = "task_type",typeHandler = JacksonTypeHandler.class)
    private List<KeyValue> taskType;

    /**
     * 配置模板
     */
    @TableField(value = "config_template",typeHandler = JacksonTypeHandler.class)
    private List<KeyValue> configTemplate;
}
